<template>
  <el-input
    class="w-full"
    v-model="filter"
    :placeholder="placeholder"
    clearable
    :prefix-icon="Search"
  />
</template>

<script lang="ts" setup>
import { Search } from '@element-plus/icons-vue';

const filter = ref('');

defineProps<{ placeholder: string }>();
defineExpose({ filter });
</script>
